Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump low level dependencies to current main releases #8

Merged
merged 1 commit into from
Oct 4, 2016

Conversation

Sauraus
Copy link
Contributor

@Sauraus Sauraus commented Sep 30, 2016

apt ~> 4.0
yum ~> 3.0
windows ~> 2.0

These dependencies are woefully out of date and creating havoc on convergence right now.

@dhoer
Copy link
Collaborator

dhoer commented Sep 30, 2016

Thanks for the PR.

How about the following compromise:

depends 'apt', '>= 2.0.0'
depends 'yum', '>= 3.0.0'        
depends 'windows', '>= 1.0.0'        

edited ^^^

I'm worried that other cookbooks that pessimistic lock to these older major versions would be broken. The windows one in particular would cause issues with Chef 11.

@Sauraus
Copy link
Contributor Author

Sauraus commented Oct 1, 2016

I am not aware of many people using Chef 11 anymore, perhaps bump the cookbook to version 2.x to signify the large jump in low level dependencies?

@dhoer
Copy link
Collaborator

dhoer commented Oct 1, 2016

Ok, sold! Please remove the windows cookbook dependency (because it should no longer be needed in Chef 12) and add chef_version '>= 12' to metadata.rb as well. If there are warnings about windows_package, I think changing windows_package to just package on line https://github.com/dhoer/chef-perforce/blob/c00965bf149edda36623100e235d6792cc611437/recipes/default.rb#L37 might fix it .

@Sauraus
Copy link
Contributor Author

Sauraus commented Oct 1, 2016

Ok give me till Monday/Tuesday to do this.

@dhoer
Copy link
Collaborator

dhoer commented Oct 1, 2016

No problem. I think you can ditch all of the cookbook dependencies. Apt_repository was released in 12.9 Chef chef/chef#4782 and yum_repository is also available in Chef as well. There is even chefspec examples: https://github.com/sethvargo/chefspec/tree/master/examples.

@dhoer
Copy link
Collaborator

dhoer commented Oct 1, 2016

After doing some research, require Chef 12.6+ (What Chef recommends for its windows package resource), drop the windows cookbook, but keep both the apt and yum cookbooks. Yum_repository was introduced in Chef 12.14, but it is not a stable chefdk release yet.

@dhoer
Copy link
Collaborator

dhoer commented Oct 3, 2016

I'm afraid I lead you astray, windows_package should remain windows package.

apt ~> 4.0
yum ~> 3.0
Require Chef >= 12.6
@Sauraus
Copy link
Contributor Author

Sauraus commented Oct 3, 2016

Updated

@dhoer dhoer merged commit 1becd40 into perforce:master Oct 4, 2016
@dhoer
Copy link
Collaborator

dhoer commented Oct 4, 2016

2.0 released, thanks again for the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants